package main
import "fmt"

func main(){
	var x interface{} = "hello world"
	var y interface{} = 123
	var z interface{} = 3.14
	a, a_ok := x.(string)
	b, b_ok := y.(int)
	c, c_ok := z.(float64)
	
	if a_ok && b_ok && c_ok{
		fmt.Printf("a=%s, b=%d, c=%f\n",a,b,c)
	}else{
		fmt.Println("conversion failed")
	}
}

// -->
// a=hello world, b=123, c=3.140000

